(xg_frame_resized): Remove check if rows/columns have
authorJan Djärv <jan.h.d@swipnet.se>
Thu, 18 Dec 2008 18:47:59 +0000 (18:47 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Thu, 18 Dec 2008 18:47:59 +0000 (18:47 +0000)
changed.
(xg_tool_bar_proxy_callback): Put focus on the frame after we have
clicked on a detached tool bar button.

src/gtkutil.c

index 6b615539ffb6801e828b2a13d14f4ac43aed795e..5f55e6daef62f4c1010a7a6cfd937516942c7317 100644 (file)
@@ -3478,6 +3478,13 @@ xg_tool_bar_proxy_callback (w, client_data)
   GtkWidget *wbutton = GTK_WIDGET (g_object_get_data (G_OBJECT (w),
                                                       XG_TOOL_BAR_PROXY_BUTTON));
   xg_tool_bar_callback (wbutton, client_data);
+  FRAME_PTR f = (FRAME_PTR) g_object_get_data (G_OBJECT (wbutton),
+                                               XG_FRAME_DATA);
+  /* Put focus back to the frame after we have clicked on a detached
+     tool bar button. */
+  Lisp_Object frame;
+  XSETFRAME (frame, f);
+  Fx_focus_frame (frame);
 }
 
 /* This callback is called when a tool item should create a proxy item,